package com.lyy.demo.openapi.demo.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import com.lyy.demo.openapi.demo.common.BaseEnum;
import com.lyy.demo.openapi.knife.SwaggerDisplayEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@SwaggerDisplayEnum
@AllArgsConstructor
public enum SexEnum implements BaseEnum {

    UNKNOWN(0, "未知"),
    MALE(1, "男"),
    FEMALE(2, "女"),
    ;

    @JsonValue
    private final Integer code;
    private final String desc;
}
